package com.example.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix ="alipay")
public class AliPayConfig {
    private String appId;
    private String appPrivateKey; // 属性名与getters/setters保持一致
    private String alipayPublicKey;
    private String notifyUrl; // 属性名与Java命名规范一致

    // appId 的 getters 和 setters
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    // appPrivateKey 的 getters 和 setters
    public String getAppPrivateKey() {
        return appPrivateKey;
    }

    public void setAppPrivateKey(String appPrivateKey) {
        this.appPrivateKey = appPrivateKey;
    }

    // alipayPublickey 的 getters 和 setters
    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }

    // notifyUrl 的 getters 和 setters
    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
}
